package com.igeek.domain;

import java.util.HashMap;
import java.util.Map;

public class Cart {
    //购物项的集合
    private Map<String,CartItem> map=new HashMap<>();
    //商品总计额
    private double total;

    public Cart() {
    }

    public Cart(Map<String, CartItem> map, double total) {
        this.map = map;
        this.total = total;
    }

    public Map<String, CartItem> getMap() {
        return map;
    }

    public void setMap(Map<String, CartItem> map) {
        this.map = map;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }
}
